﻿/* 
 * author: www.cnblogs.com/luminji
 * date  : 2011/12/28
 */
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Luminji.Core.Data;
using Luminji.Exam.Model.Papers;
using Luminji.Exam.Model.Subjects;
using Luminji.Infrastructure.DomainBase;
using Luminji.Infrastructure.UnitOfWork;

namespace Luminji.Exam.Infrastructure.Repositories.Subjects
{
    public class SubjectRepository : SqlServerRepositoryBase<Subject>,
        ISubjectRepository
    {


        public SubjectRepository(IUnitOfWork unitOfWork)
            : base(unitOfWork)
        {

        }

        public override IList<Subject> Find()
        {
            return BuildEntitiesFromSql("select * from Subject");
        }

        public override Subject Find(object key)
        {
            throw new NotImplementedException();
        }

        public override void Add(Subject item)
        {
            throw new NotImplementedException();
        }

        public override void Remove(Subject item)
        {
            throw new NotImplementedException();
        }
    }
}
